﻿using System;
using System.Collections.Generic;

namespace Chenglin.W8Timer
{
    internal static class Constants
    {
        internal const int FPS = 25;
        internal const int TimerInterval = 1000 / FPS;

        internal const string TimerScenario = "Timer";
        internal const string CountDownScenario = "Count Down";

        internal static Dictionary<string, Scenario> Scenarios = new Dictionary<string, Scenario>(StringComparer.CurrentCultureIgnoreCase);

        internal const string KeyScenario = "Mode";

        static Constants()
        {
            Scenarios.Add(TimerScenario, new Scenario { Key = TimerScenario, ClassType = typeof(TimerScenario) });
            Scenarios.Add(CountDownScenario, new Scenario { Key = CountDownScenario, ClassType = typeof(CountDownScenario) });
        }
    }

    internal class Scenario
    {
        public string Key { get; set; }

        public Type ClassType { get; set; }

        public override string ToString()
        {
            return Key;
        }
    }
}
